import request from '@/utils/request'

export default {

    //带条件的分页查询,酒店订单
    getHotelPageVo(current, limit, hotelQuery) {
        return request({
            url: `/inner/order/hotel/getHotelPageVo/${current}/${limit}`,
            method: 'post',
            data: hotelQuery //转化json传递
        })
    },
    //根据用户id查询酒店订单
    getHotelPageByIdVo(current, limit, id) {
        return request({
            url: `/inner/order/hotel/getHotelPageByIdVo/${current}/${limit}/${id}`,
            method: 'post'
        })
    },
    //根据删除用户，不能算是算出操作，我们修改用户，把用户的状态从0变成2
    updateHotelById(id) {
        return request({
            url: `/inner/user/updateTeacherById/${id}`,
            method: 'delete',
        })
    },
    //根据id查询数据，做回显
    getUserById(id) {
        return request({
            url: `/inner/user/getUserById/${id}`,
            method: 'get'
        })
    },
    //执行修改操作
    updateUser(user) {
        return request({
            url: `/inner/user/updateUser`,
            method: 'post',
            data: user   //转化json传递
        })
    },
    // 查询所有用户
    getAllTeacher() {
        return request({
            url: `/eduservice/eduteacher`,
            method: 'get',
        })
    },
    //带条件的分页查询,景区订单
    getSceneryPageVo(current, limit, hotelQuery) {
        return request({
            url: `/inner/order/scenery/getSceneryPageVo/${current}/${limit}`,
            method: 'post',
            data: hotelQuery //转化json传递
        })
    },
    //带条件的分页查询,景区订单
    getSceneryPageByIdVo(current, limit, id) {
        return request({
            url: `/inner/order/scenery/getSceneryPageByIdVo/${current}/${limit}/${id}`,
            method: 'post'
        })
    }, 
}